package com.groot.medical.entity;

import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;



public class Ztree {
	private String id;
	private String pId;
	private String name;
	@JSONField(serialize=false)
	private List<Ztree>children;
	private boolean checked;
    private Long level;
    private String url;
    
    
    public Ztree(Menu menu){
    	this.id = menu.getMenuId();
    	this.name = menu.getMenuName();
    	this.pId = menu.getMenuPid();
    	this.url = menu.getMenuUrl();
    }
	public Ztree(String id, String pId, String name, List<Ztree> children, boolean checked, Long level, String url) {
		super();
		this.id = id;
		
		this.name = name;
		this.children = children;
		
	}

	public Ztree() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getpId() {
		return pId;
	}
	public void setpId(String pId) {
		this.pId = pId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Ztree> getChildren() {
		return children;
	}
	public void setChildren(List<Ztree> children) {
		this.children = children;
	}
	public boolean isChecked() {
		return checked;
	}
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	public Long getLevel() {
		return level;
	}
	public void setLevel(Long level) {
		this.level = level;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	@Override
	public String toString() {
		return "Ztree [id=" + id + ", pId=" + pId + ", name=" + name + ", children=" + children + ", checked=" + checked
				+ ", level=" + level + ", url=" + url + "]";
	}
	
	
}
